package com.itheima.health.dao;

import com.itheima.health.pojo.OrderSetting;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @author spt
 * @description 预约设置DAO
 * @date 2019/9/29
 **/
@Mapper
public interface OrderSettingDao {
    void updateNumberByDate(@Param("orderDate") Date orderDate, @Param("number") Integer number);

    OrderSetting selectByDate(@Param("orderDate") Date orderDate);

    void insertByDate(@Param("orderDate") Date orderDate,@Param("number") Integer number);

    List<OrderSetting> listOrderSettings(@Param("date") String date);

    void updateReservationsById(OrderSetting orderSetting);

}
